<b>{=category}</b>
<br/>


<div class="view_contents_box">
<table align='center' width='100%' border='1' cellspacing='0' cellpadding='5'>
	
	
	<tr>
		<td width="100" align="right">
			작성자 : 
		</td>
		<td>
			{=detail_info.user_name}
		</td>
	</tr>


	<!--[ if({Auth.isAdmin}) : ]-->
	
	<tr>
		<td align="right">
			이메일 : 
		</td>
		<td>
			{=detail_info.user_email}
		</td>
	</tr>

	<tr>
		<td align="right">
			전화 : 
		</td>
		<td>
			{=detail_info.user_phone}
		</td>
	</tr>
	<tr>
		<td align="right">
			휴대폰 : 
		</td>
		<td>
			{=detail_info.user_mobile}
		</td>
	</tr>

	<!--[ endif ]-->
	



	<tr>
		<td align="right">
			제목 : 
		</td>
		<td>
			{=detail_info.subjects}
		</td>
	</tr>

	<tr>
		<td align="right">
			내용 : 
		</td>
		<td>
			{=detail_info.contents_view}
		</td>
	</tr>

</table>
</div>


<!--[ if({detail_info.comments}) : ]-->
<div class="comments_list_box">

	* 답변<br/>
	<!--[ foreach({comments_list} as {comments}) : ]-->

	<div style="margin-bottom:5px">
	<table align='center' width='100%' border='1' cellspacing='0' cellpadding='3'>
		<tr>
			<td bgcolor="#f2f2f2">

				
				<div style="float:left">{=comments.user_name}</div>
				<div style="float:right">

					<!--[ if({Auth.isAdmin}) : ]-->
						<a href="javascript:deleteCommentConfirm('{=category}','{=bbs_no}','{=page}','{=comments.comm_no}')">[삭제]</a>
					<!--[ endif ]-->

					{=comments.reg_date}

				</div>


			</td>
		</tr>
		<tr>
			<td>{=comments.contents_view}</td>
		</tr>
	</table>
	</div>

	<!--[ endforeach ]-->
</div>
<!--[ endif ]-->






<!--[ if({Auth.isAdmin}) : ]-->

<div class="comments_write_box">
* 답변작성하기<br/>
<form name='' method="POST" action="/Customer/executeWriteComments" onSubmit="return checkWriteCommentsForm(this)">
<input type="hidden" name="bbs_no" value="{=bbs_no}">
<input type="hidden" name="category" value="{=category}">
<input type="hidden" name="page" value="{=page}">

<table align='center' width='100%' border='1' cellspacing='0' cellpadding='5'>
	<tr>
		<td colspan="2">
			이름 : <input type="text" name="user_name" value="{=Auth.admin_name}" class="" size="20">
		</td>
	</tr>
	<tr>
		<td>
			<textarea name="contents" rows="3" style="width:99%"></textarea>
		</td>
		<td width="90">
			<input type="submit" value="등록하기" class="" style="width:80px;height:55px">
		</td>
	</tr>
</table>

</form>
</div>
<!--[ endif ]-->




<div class="bottom_button_box">
<table align='center' width='100%' border='0' cellspacing='1' cellpadding='3'>
	<tr>
		<td align="center">

			<a href="/Customer/getList/{=category}/{=page}">[목록으로]</a>



			<!--[ if( !{detail_info.user_id} || {Auth.isAdmin} ) : ]-->
			<a href="/Customer/viewModifyConfirm/{=category}/{=bbs_no}/{=page}">[수정하기]</a>

			<a href="javascript:deleteBBS('{=category}','{=bbs_no}','{=page}')">[삭제하기]</a>

			<a href="/Customer/viewDeleteConfirm/{=category}/{=bbs_no}/{=page}"></a>
			<!--[ endif ]-->



		</td>
	</tr>
</table>
</div>




